<script>
    (function(){
        var bp = document.createElement('script');
        var curProtocol = window.location.protocol.split(':')[0];
        if (curProtocol === 'https') {
            bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
        }
        else {
            bp.src = 'http://push.zhanzhang.baidu.com/push.js';
        }
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(bp, s);
    })();
</script>
<div id="header">
    <div id="header_content" class="container">
        <a href="/">
            <h1>华丽的YY吧</h1>
            <h2>程序员的代码库 - 汇聚每日搞笑段子、热门图片、有趣新闻。</h2>
        </a>

        <div class="site-links">
            <a href="/" >首页</a>
            <a href="#" title="有趣的"><b>有趣的</b></a>
            <a href="#" title="连载直播"><b>连载</b></a>
            <a href="#" title="关注互联网的自媒体">自媒体</a>
            <a href="#" title="搞笑图片">一图流</a>
            <?php if(is_login()) { ?>
            <span><a href="">你好，<?php echo get_username();?></a> <a href="{:url('User/logout')}">退出</a></span>
            <?php } else { ?>
            <span><a href="{:url('User/login')}">登录</a></span>
            <?php } ?>
        </div>

        <div id="search-box">

            <form id="search-form" >
                <table class="fieldset">
                    <tr>
                        <td>
                            <input class="field" type="text" name="q" size="31" />
                        </td>
                        <td>

                            <input type="hidden" name="ie" value="UTF-8" />
                            <input class="button" type="submit" name="sa" value="搜索" />
                        </td>
                    </tr>
                </table>
            </form>

        </div>
    </div>
</div>